print(a == b and (c == d or c == e) and f == g)